package com.maiji.cloud.entities.login;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 *  食谱用料表
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "recipe_ingredient")
public class RecipeIngredient {

    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键

    @Column(name = "recipe_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String recipeId; //食谱主键

    @Column(name = "food_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String foodId; //食材主键

    @Column(name = "food_name", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String foodName; //食材名称

    @Column(name = "consumption", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String consumption; // 用量

    @Column(name = "main", type = MySqlTypeConstant.BIT, length = 1)
    private Boolean main; // 是否主料

    @Column(name = "cascader_str", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String cascaderStr; // 级联用料

}
